<extend name="./Application/Home/View/master.html"/>
<block name="title">
    <!--中间开始-->
    <div id="content">
        <div class="list">
            <div class="main">
                <h4 class="listoption"><a href="#">首页</a>
                    <volist name="fatherData" id="vo">
                        &gt;<a href="#">{$vo['cname']}</a>
                    </volist>
                </h4>

                <style>
                    .list .postion dl a.red {
                        color: red;
                    }
                </style>
                <div class="postion">

                    <foreach name="finalTemp" item="vo" key="k">
                        <?php
								$temp = $param;
								$temp[$k] =0;
							?>
                        <dl>
                            <dt>{$vo['name']}:</dt>

                            <dd>
                                <a href="{:u('Home/List/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}" <?php if($param[$k]==0){ ?> class="red"<?php } ?>>不限</a>
                                <foreach name="vo['value']" key="kk" item="vv">
                                    <?php $temp[$k] =$vv['gtid']  ?>
                                    <a href="{:u('Home/List/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}" <?php if($param[$k]==$vv['gtid']){ ?> class="red"<?php } ?>>{$vv['gtvalue']}</a>
                                </foreach>
                            </dd>

                        </dl>
                    </foreach>

                        <!--</dl>-->
                        <!--<dl>-->
                        <!--<dt>{$vo['name']}:</dt>-->
                        <!--<dd>-->
                        <!--<foreach name="vo['value']" key="kk" item="vv">-->
                        <!--<?php $temp[$k]=$vv['gtid'] ?>-->
                        <!--<a href="">{$vo['bname']}</a>-->
                        <!--</foreach>-->
                        <!--</dd>-->
                        <!--<dl>-->
                        <!--<dt>排序:</dt>-->
                        <!--<dd>-->
                        <!--<a href="">默认</a>-->
                        <!--<a href="">价格</a>-->
                        <!--</dd>-->

                        <!--</dl>-->
                        <!--</dl>-->
                </div>

            </div>
        </div>

        <div class="listcontent">
            <div class="main">
                <ul>

                    <!--商品展示-->
                    <volist name="data" id="vo">
                        <li>
                            <div class="listdesc">
                                <dl class="desc">
                                    <a href="{:U('Content/index',['gid'=>$vo['gid']])}" class="pro_list">
                                        <dt class="pic"><img class="lazy" src="__ROOT__/{$vo['pic']}"
                                                             alt="我去火星旅游啦,不知道什么回来..."></dt>
                                        <dd class="cont">
                                            <span class="title">{$vo['gname']}</span>
                                            <span class="price">
                                            <!--<del>{$vo['marketprice']}</del>-->
                                           价格： <span>{$vo['shopprice']}</span>
                                        </span>
                                        </dd>
                                    </a>
                                    <dd class="btns">
                                        <a href="javascript:;" class="add-cart"><i></i><em>加入购物车</em></a>
                                    </dd>
                                </dl>
                            </div>

                        </li>
                    </volist>


                </ul>
            </div>

        </div>

    </div>
    </div>
    <!--中间结束-->
</block>